Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3 |
Changes | 0 |
1 | import { createAction, handleActions } from 'redux-actions'; |
||
3 | |||
4 | 1 | export const FETCH_SERVERS = 'shlink/servers/FETCH_SERVERS'; |
|
5 | |||
6 | 1 | export const listServers = ({ listServers }) => createAction(FETCH_SERVERS, () => listServers()); |
|
7 | |||
8 | 1 | export const createServer = ({ createServer }, listServers) => pipe(createServer, listServers); |
|
9 | |||
10 | 1 | export const deleteServer = ({ deleteServer }, listServers) => pipe(deleteServer, listServers); |
|
11 | |||
17 |